import * as PIXI from 'pixi.js';
import { pb } from '../pb';
export default class Web {
  container = new PIXI.Container()
  sprite: PIXI.Sprite;
  constructor(
    public data: pb.IWeb,
  ) { }
  async reset() {
    this.container.removeChild();
    if (this.sprite) {
      this.sprite.width = this.data.width;
      this.sprite.height = this.data.height;
      this.container.addChild(this.sprite)
    }
  }
}
